/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package actioncombination.logic.agent.action;

import actioncombination.problem.gridworld.AgentStateImpl;
import actioncombination.logic.agent.action.Action;
import actioncombination.logic.agent.AgentState;


/**
 *
 * @author Administrador
 */
public class ActionTemplate {

public ActionTemplate(){
}
public AgentState executeActions(AgentState s, Action direction, Action velocity){
    AgentStateImpl estado=(AgentStateImpl) s;
    estado = (AgentStateImpl) direction.execute(estado);
    return velocity.execute(estado);      
    
}
}
